package lab02.test05;

import java.util.concurrent.Callable;

public class Cobe {
    Cobe(){};
    //属性：立方体的长，宽，高。
    float length;
    float width;
    float high;
    float volume;
    //行为
    void set(float length,float width,float high){
        this.length=length;
        this.high=high;
        this.width=width;
    }
    float getLength(){
        return length;
    }
    float getWidth(){
        return width;
    }
      float getHigh(){
        return high;
      }
      float volume(){
          return length*width*high;
      }
}
